//
//  MPTaskModel.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/23.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPTaskModel.h"

@implementation MPTaskModel
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"Id" : @"id"};
}

- (BOOL)hasCancel {
    return (self.status == MPMarkStateAppealing || self.status == MPMarkStateReviewing);
}
- (NSString *)taskTypeName {
    return self.type == MPTaskTypeMark ? @"标注任务" : @"审核任务";
}
@end
